package com.doctor.web.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.doctor.common.annotation.Excel;
import com.doctor.common.core.domain.BaseEntity;

/**
 * 活动管理对象 t_activity
 * 
 * @author ruoyi
 * @date 2024-05-24
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Getter
public class Activity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 活动名称 */
    @Excel(name = "活动名称")
    private String name;

    /** 活动封面 */
    @Excel(name = "活动封面")
    private String cover;

    /** 活动详情 */
    @Excel(name = "活动详情")
    private String details;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 活动人数 */
    @Excel(name = "活动总人数")
    private Long totalNumber;

    /** 活动地址 */
    @Excel(name = "活动地址")
    private String location;

    /** 状态（1上线，2下线） */
    @Excel(name = "状态", readConverterExp = "1=上线，2下线")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    @Excel(name = "活动报名人数")
    private Long applyNumber;

    @Excel(name = "报名费用")
    private BigDecimal price;

    @Excel(name = "浏览量")
    private Long views;

    /** 推荐标志（0不推荐 1推荐）*/
    private String recFlag;
}
